package com.community.service;

import com.community.common.ServerResponse;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public interface ILabelService {
    /**
     * 新增标签
     * @param name
     * @param request
     * @return
     */
    ServerResponse<String> add(String name, HttpServletRequest request);

    /**
     * 删除标签
     * @param id
     * @param request
     * @return
     */
    ServerResponse<String> del(int id,HttpServletRequest request);

    /**
     * 查询所有标签
     * @return
     */
    ServerResponse<List<Map>> selectAllLabel();


}
